<?php
 
my_component_load('xl_builder' , false);
my_component_load('testing' , false); 
my_component_load('rpt_g_satu', false);
$task =  isset($_GET['task']) ? $_GET['task']: '';
$periode_id=isset($_POST['periode_id']) ? (int) $_POST['periode_id'] : 0 ;
$modulname = "Reporting _BN_ Penggajian _BN_ Waktu Kerja _BN_ Absensi";
if($_SERVER['REQUEST_METHOD'] == "POST"){
	if(! isset($_POST['periode_id']))my_direct($_SERVER['HTTP_REFERER']);
	header("Content-Type: application/xls");;
	header("Content-Disposition: attachment;filename=rpt_global_umum.xls");
	echo report_pr_komponen_gaji($periode_id);
	exit; 
}

$pagename="Download laporan global";
$content = form_set_download(); 
   
generate_my_web($content, $pagename  );